.dd {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.4rem;
}

.dd-list {
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dd-list .dd-list {
  padding-left: 30px;
}

.dd-item .dd-list {
  padding-left: 30px;
}

.dd-collapsed .dd-list {
  display: none;
}

.dd-item,
.dd-empty,
.dd-placeholder {
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
}

.dd-handle {
  display: block;
  height: 40px;
  padding: 0 10px;
  color: #333;
  text-decoration: none;
  background: #ddd;
  position: absolute;
  margin: 0;
  left: 0;
  top: 0;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-indent: 100%;
  width: 30px;
  &:hover {
    background: #e3e4e6;
  }
  &:before {
    content: '\f0c9';
    display: block;
    position: absolute;
    left: 0;
    line-height: 40px;
    width: 100%;
    text-align: center;
    text-indent: 0;
    color: #fff;
    font-size: 14px;
    font-weight: normal;
  }
}

.dd-item > button {
  display: block;
  position: relative;
  cursor: pointer;
  float: left;
  width: 25px;
  height: 40px;
  margin: 0px 0;
  padding: 0;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
  border: 0;
  background: transparent;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  font-weight: bold;
  margin-left: 30px;
  &:hover, &:focus, &:active {

    outline: none;
  }
  &:before {
    content: '+';
    display: block;
    position: absolute;
    width: 100%;
    text-align: center;
    text-indent: 0;
  }
  &[data-action="collapse"]:before {
    content: '-';
  }
}

.dd-placeholder,
.dd-empty {
  margin: 5px 0;
  padding: 0;
  min-height: 30px;
  background: #f2fbff;
  border: 1px dashed #b6bcbf;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}

.dd-empty {
  border: 1px dashed #bbb;
  min-height: 100px;
  background-color: #e5e5e5;
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
}

.dd-dragel {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
}

.dd-dragel > .dd-item .dd-handle {
  margin-top: 0;
}

.dd-dragel .dd-handle {
  -webkit-box-shadow: 2px 4px 6px 0 rgba(0, 0, 0, .1);
  box-shadow: 2px 4px 6px 0 rgba(0, 0, 0, .1);
}

.dd-content {
  display: block;
  height: 40px;
  line-height: 40px;
  margin: 5px 0;
  padding: 0 10px 0 40px;
  color: #333;
  text-decoration: none;
  background: #ffffff;
  small {
    color: #999;
    padding-left: 10px;
  }
}

.dd-dragel > .dd-item > .dd-content {
  margin: 0;
}

.dd-item > button {
}

.dd-tool {
  position: absolute;
  top: 0;
  right: 0;
  line-height: 40px;
  font-size: 1.4rem;
  a {
    color: #666;
    margin-right: 10px;
    &:hover {
      color: color('blue', 'base');
    }
  }
}

.dux-tree {
  h2 {
    font-weight: normal;
    margin: 0;
    padding: 0;
    font-size: 1.4rem;
  }
  ul, li {
    list-style: none;
    white-space: nowrap;
  }
  ul {
    margin: 0;
    padding: 0;
    a {
      padding: 0 5px;
      color: #666;
      &:hover {
        background: color('blue', 'base');
        color: #fff;
      }
    }

  }
  .active h2 > a {
    background: color('blue', 'base');
    color: #fff;
  }
  & > h2 {
    padding-left: 10px;
  }
  li {
    background: url("../images/tree_line.png") repeat-y;
    background-position: 0 0;
    padding-left: 20px;
  }
  ul h2 {
    background: url("../images/tree_middle.png") no-repeat;
    background-position: 0% 50%;
    padding-left: 20px;
    height: 30px;
    line-height: 30px;
  }
}